
package com.bei_en.teacher.admin.model.questions.vo;

import java.util.*;

import com.bei_en.teacher.admin.model.questions.bean.QuestionsType;
import com.bei_en.teacher.admin.model.BaseVo;

import javax.validation.constraints.*;

import org.hibernate.validator.constraints.*;

import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-18 9:18:37
 */
public class QuestionsTypeVo extends BaseVo {

    private QuestionsType questionsType;
    private String  SubjectName;
    private String  EducationName;
    
    public String getSubjectName() {
		return SubjectName;
	}

	public void setSubjectName(String subjectName) {
		SubjectName = subjectName;
	}

	public String getEducationName() {
		return EducationName;
	}

	public void setEducationName(String educationName) {
		EducationName = educationName;
	}
    public QuestionsTypeVo() {

    this.questionsType = new QuestionsType();
    }
	public Integer getMakeNum() {
		return questionsType.getMakeNum();
	}

	public void setMakeNum(Integer makeNum) {
		this.questionsType.setMakeNum(makeNum);
	}

	public Integer getYesNum() {
		return questionsType.getYesNum();
	}

	public void setYesNum(Integer yesNum) {
		this.questionsType.setYesNum(yesNum);
	}

	
	public String getYear() {
		return questionsType.getYear();
	}

	public void setYear(String year) {
		this.questionsType .setYear(year);;
	}
	public Double getMakeFraction() {
		return questionsType.getMakeFraction();
	}

	public void setMakeFraction(Double makeFraction) {
		questionsType.setMakeFraction(makeFraction);;
	}

	public Integer getMakeTime() {
		return questionsType.getMakeTime();
	}

	public void setMakeTime(Integer makeTime) {
		questionsType.setMakeTime(makeTime);
	}

    
    public Double getWeight() {
		return questionsType.getWeight();
	}

	public void setWeight(Double weight) {
		this.questionsType .setWeight(weight);
	}
    public QuestionsTypeVo(QuestionsType questionsType) {

    this.questionsType = questionsType;
    }
    
    public QuestionsType getQuestionsType() {

    return this.questionsType;
    }
    
    public void setQuestionsType(QuestionsType questionsType) {

    this.questionsType=questionsType;
    }

        public Integer getId() {
            return this.questionsType.getId();
        }
        public void setId(Integer id) {
            this.questionsType.setId(id);
        }
        

        
        public void setName(String value) {
    	this.questionsType.setName(value);
        }
	@Length(max=255)
    public String getName() {
        return this.questionsType.getName();
    }
        
        public void setParent(Integer value) {
    	this.questionsType.setParent(value);
        }
	
    public Integer getParent() {
        return this.questionsType.getParent();
    }
        
        public void setType(Integer value) {
    	this.questionsType.setType(value);
        }
	
    public Integer getType() {
        return this.questionsType.getType();
    }
        
        public void setProvinceId(Integer value) {
    	this.questionsType.setProvinceId(value);
        }
	
    public Integer getProvinceId() {
        return this.questionsType.getProvinceId();
    }
        
        public void setCityId(Integer value) {
    	this.questionsType.setCityId(value);
        }
	
    public Integer getCityId() {
        return this.questionsType.getCityId();
    }
        
        public void setAreaId(Integer value) {
    	this.questionsType.setAreaId(value);
        }
	
    public Integer getAreaId() {
        return this.questionsType.getAreaId();
    }
        
        public void setThumbnail(String value) {
    	this.questionsType.setThumbnail(value);
        }
	@Length(max=255)
    public String getThumbnail() {
        return this.questionsType.getThumbnail();
    }
        
        public void setEducationId(Integer value) {
    	this.questionsType.setEducationId(value);
        }
	
    public Integer getEducationId() {
        return this.questionsType.getEducationId();
    }
        
        public void setSubjectId(Integer value) {
    	this.questionsType.setSubjectId(value);
        }
	
    public Integer getSubjectId() {
        return this.questionsType.getSubjectId();
    }
        
        public void setQuestionsSum(Long value) {
    	this.questionsType.setQuestionsSum(value);
        }
	
    public Long getQuestionsSum() {
        return this.questionsType.getQuestionsSum();
    }
        
        public void setStudyNum(Integer value) {
    	this.questionsType.setStudyNum(value);
        }
	
    public Integer getStudyNum() {
        return this.questionsType.getStudyNum();
    }
        
        public void setFractionSum(Long value) {
    	this.questionsType.setFractionSum(value);
        }
	
    public Long getFractionSum() {
        return this.questionsType.getFractionSum();
    }
        
    public void setCreateTime(Date value) {
        this.questionsType.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.questionsType.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}